package lab02.text11;

/**
 * Created by Adminitrator on 2017/10/23.
 */
public class Squre extends Rectangle {
        double a;
    @Override
    double primeter() {
        return super.primeter();
    }
    @Override
    double area() {
        return super.area();
    }
    public void printMyWay() {
        System.out.println("边长");
        System.out.println(a);
        System.out.println("周长");
        System.out.println(a*4);
        System.out.println("面积");
        System.out.println(a*a);
        System.out.println("对角线");
        System.out.println(Math.sqrt(a*a+a*a));
    }
}
